/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simhya.matheval.operator;

/**
 *
 * @author Luca
 */
public class Power extends OperatorDefinition {

    public Power() {
        super("^");
    }
    public double compute(double x) {
        throw new UnsupportedOperationException("Operator " + symbol + " is binary");
    }
    public double compute(double x, double y) {
        return Math.pow(x, y);
    }

}